import Mock from 'mockjs'
import mockServer from './mockServer'

// 模拟课程相关接口
Mock.mock(/\/api\/course\/recommend/, 'get', mockServer.getRecommend(5, '375x150'))
Mock.mock(/\/api\/course\/index/, 'get', mockServer.getCourses(15, '76x76'))
Mock.mock(/\/api\/course\/my/, 'get', mockServer.getCourseOrders(5, '76x76'))
Mock.mock(/\/api\/course\/detail/, 'get', mockServer.getCourseDetail())
Mock.mock(/\/api\/course\/category/, 'get', mockServer.getCourseDetail())
Mock.mock(/\/api\/course\/audios/, 'get', mockServer.getCourseAudios())

// 模拟用户相关接口
Mock.mock(/\/api\/user\/loginstatus/, 'post', mockServer.loginstatus())
Mock.mock(/\/api\/user\/login/, 'post', mockServer.login())
Mock.mock(/\/api\/user\/logout/, 'post', mockServer.logout())
Mock.mock(/\/api\/user\/sendcode/, 'post', mockServer.sendcode())

// 模拟用户相关接口
Mock.mock(/\/api\/audio\/url/, 'get', mockServer.getAudioUrl())

export default Mock